<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ page import="net.comm.common.ValueMaping" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>公告通知管理</TITLE>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adgloab.css"/>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/adstyle.css" />
	<SCRIPT src="${cpath}/js/global.js" type=text/javascript></SCRIPT>
	<SCRIPT src="${cpath}/js/location.js" type=text/javascript></SCRIPT>
	<SCRIPT src="${cpath}/js/location_array.js" type=text/javascript></SCRIPT>
</head>
<body>
<script> 
	//转页面
	var usertype = '${usertype}';
	if(usertype != "9"){
//		parent.window.location.replace("${cpath}/admin/login.jsp"); 
	}
</script>
		<DIV id=admin>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

			<form action="${cpath}/notadv.do" name="theForm"  method="post" enctype="multipart/form-data" >
			<div class='subtop' >
				<p><a href="#"><img src="${cpath}/images/slogo.png" ></a></p>
				<dl >
					<dd class="info"><span>类型：</span>
					<tag:ARRAY  id="qryNtype" name="qryNtype" options="<%=ValueMaping.NOTADV_TYPE%>" value='${theForm.qryNtype}'/>
					</dd>
					<dd class="info"><span>板块：</span>
					<tag:ARRAY  id="qryNsort" name="qryNsort" options="<%=ValueMaping.NOTADV_SORT%>" value='${theForm.qryNsort}'/>
					</dd>
					<dd class="info"><span>内容：</span>
					<input type="text" name='qryContent' value='${theForm.qryContent}' />
					</dd>
				</dl>
				<div class='fun'>
					<li><a href="javascript:doConfirm('adlist','');">查&nbsp;&nbsp;询</a></li>
				</div>
			</div>
			<hr/>
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
				<table class="info">
					<thead>
						<tr align=left>
							<th width="5%">序号</th>
							<th width="45%">标题</th>
							<th width="7%">类型</th>
							<th width="8%">板块</th>
							<th width="6%">板块ID</th>
							<th width="9%">点击/回复</th>
							<th width="10%">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="notadv" items="${notadvlist}" varStatus="status">   
						<tr  bgcolor='#F2F3F6'align=left>
							<td >
							<c:if test="${notadv.follID == 0}"> 
							<c:out value="${notadv.seqID}"></c:out>
							</c:if>
							</td>
							<td ><c:out value="${notadv.title}"></c:out></td>
							<td >${myfn:getMsg("NOTADV_TYPE", notadv.ntype)}</td>
							<td >${myfn:getMsg("NOTADV_SORT", notadv.nsort)}</td>
							<td >${notadv.nsortID}</td>
							<td >${notadv.attachcnt}/${notadv.replycnt}</td>
							<td >
							<c:if test="${notadv.follID == 0}"> 
							<a href="javascript:doConfirm('addel','${notadv.seqID}');">删除</a>
							</c:if>
							</td>
						</tr>
						<tr align="left">   
						 <td >&nbsp;</td>
						 <td colspan="6">
							${notadv.content}
						 </td>
						</tr>  
						</c:forEach> 
						<tr align="left">   
						 <td colspan="7">
							<input type="hidden" name='seqID' value=''/>
							<!-- 分页主键 formName字段当前的form名称 -->
							<%@ include file="/jsplib/page.jsp" %>
							<!--隐藏域-->
							<input type="hidden" name='action' value='adlist'/>
						 </td>
						</tr>  
					</tbody>
				</table>
			</div><!-- whole }}} -->			
			</form>
			</DIV><!-- content }}} -->
		</DIV><!-- profile_mid }}} -->
	</DIV><!-- admin end }}} -->

</body>
</html>
<!---->
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm(act,id)
	{
		var form = document.theForm;

		var action = form['action'];
		var seqID = form['seqID'];

		action.value = act;
		seqID.value = id;

		form.submit();
	}
</script>
